package it.slothy.noveleditor.starter.test;

public class YahtzeeGame {
	
	public static void main(String[] args) {
		//Inizio Partita
		System.out.println("Inizio Partita");
		
		//Setto il Player
		Player player = new Player();
		
		//While(Scoreboard non completata)
		while(!player.getScoreboard().isComplete()){
			//Setto Outcome uguale a 0
			player.throwDices();
			
			//while(tiri > 0)
			while(player.hasThrows()){
				//Tiro Dadi = Outcome(function)
				 player.throwDices();
				
				//Scelgo i dadi da mantere per il prossimo lancio(function(scoreboard, outcome))
				player.checkDices();
				
				//if(bloccati tutti)
				if(player.allDicesBlocked()){
					player.doChoice();
					//esci dal ciclo while
					break;
				}
			}
		}		
	}

}
